package cn.gok.mapper;

import cn.gok.pojo.Examination;
import cn.gok.pojo.ExcelsPro;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ExcelMapper {
    @Insert("insert into practice (question,answer,title,score,serial) values (#{question},#{answer},#{title},#{score},#{serial})")
    Integer addExcels(ExcelsPro excelsPro);

    @Insert("INSERT INTO examination (title,ip,`ports`,`databases`,username,`password`) VALUES (#{title},#{ip},#{ports},#{databases},#{username},#{password})")
    Integer addDatas(Examination databases);

    @Select("SELECT * FROM examination WHERE 1=1")
    List<Examination> sel();
}
